package cn.rkylin.oms.order.vo;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;

import cn.rkylin.oms.order.domain.Order;
import cn.rkylin.oms.order.domain.OrderSku;

public class OrderVO extends Order {

	private String shopAccount;
	private String qty;
	private String factUnitPrice;
	private String skuRemark;
    private String ecFlagShow;
    private String sonShow;
    private String chk;
    private String sign; // 标记
    private String customerService; // 售后
    private String merge; // 合并
    private String inspection; // 验视
    private String status; // 状态
    private String statusAfterSale; // 状态
    private String disQuestion; // 问题描述
    private String operation;
    private String stamp;
    private String event;
    public static Map<String, String> statusMap = new HashMap<String, String>();
    static {
        statusMap.put("EC_WAIT_BUYER_PAY", "没有创建支付宝交易"); // 没有创建支付宝交易
        statusMap.put("EC_WAIT_BUYER_PAY", "等待买家付款"); // 等待买家付款
        statusMap.put("EC_TRADE_PARTIALLY_SEND", "卖家部分发货"); // 卖家部分发货
        statusMap.put("EC_WAIT_SELLER_SEND", "等待卖家发货"); // 等待卖家发货,即:买家已付款
        statusMap.put("EC_TRADE_ALL_SEND", "等待买家确认收货"); // 等待买家确认收货,即:卖家已发货
        statusMap.put("EC_TRADE_ALL_SEND", "买家已签收"); // 买家已签收,货到付款专用
        statusMap.put("EC_TRADE_FINISHED", "交易成功"); // 交易成功
        statusMap.put("EC_TRADE_CANCELED", "付款以后用户退款成功，交易自动关闭"); // 付款以后用户退款成功，交易自动关闭
        statusMap.put("EC_TRADE_CANCELED", "付款以前，卖家或买家主动关闭交易"); // 付款以前，卖家或买家主动关闭交易
        statusMap.put("EC_WAIT_BUYER_PAY", "国际信用卡支付付款确认中"); // 国际信用卡支付付款确认中
        statusMap.put("EC_WAIT_BUYER_PAY", "0元购合约中"); // 0元购合约中
    }
    public static Map<Long, String> ecFlagColor = new HashMap<Long, String>();
    static {
        ecFlagColor.put(1L, "#FF4040"); // red
        ecFlagColor.put(2L, "#f0ad4e");// yellow
        ecFlagColor.put(3L, "#218868"); // green
        ecFlagColor.put(4L, "#7EC0EE");// blue
        ecFlagColor.put(5L, "#7D26CD");// purple
        ecFlagColor.put(6L, "#A0522D");// brown
    }
    private static final String STATUS_LOCK = "<span class=\"fa fa-lock truncate-text tooltip-column-detail\"></span>";
    private static final String AUTO_FLAG = "<span class='fa fa-gear truncate-text tooltip-column-detail'> </span>";
    private static final String HAND_FLAG = "<span class='fa fa-thumbs-o-up truncate-text tooltip-column-detail'> </span>";
    private static final String QUESTION_FLAG = "<span style=\"color:red\" class='fa fa-exclamation-circle truncate-text tooltip-column-detail'> </span>";
    private static final String ALLOTED_FLAG = "<span class='badge badge-yellow truncate-text tooltip-column-detail'> </span>";

    private static final String AFTERSALE_FLAG = "<span class='badge badge-orange'> </span>";
    private static final String COMBIN_FLAG = "<span class='fa fa-compress truncate-text tooltip-column-detail'> </span>";
    private static final String INSPECT_FLAG = "<span class='fa fa-eye truncate-text tooltip-column-detail'> </span>";

    private static final String STATUS_CHK = "<input name=\"chkOrder%s\" orderId=\"%s\" type=\"checkbox\" remark=\"%s\" shopType=\"%s\" shopId=\"%s\"/>";
//    private static final String STATUS_CHK = "<input class=\"chkRule icheck\" name=\"chkOrder%s\" style=\"display:none;\" orderId=\"%s\" type=\"checkbox\" remark=\"%s\" />";
    private static final String STATUS_ECORDERSHOW = "<span class=\"fadu fa fa-chevron-down\" orderId=\"%s\" shopType=\"%s\"></span>";
    private static final String OPERATION_BTN_AFTER_SALE = "<button onclick=\"\" orderId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\" pepid='sysOrderAfterSale'><i class=\"fa fa-phone\"></i>&nbsp;售后</button>";

    private static final String OPERATION_BTN_UPDATE = "<button onclick=\"updateOrder(\'%s\')\" orderId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\" pepid='sysOrderEdit'><i class=\"fa fa-edit\"></i>&nbsp;修改</button>";
    private static final String OPERATION_BTN_CANCEL_MERGER = "<button onclick=\"cancelMerger(\'%s\')\" orderId=\"%s\" type=\"button\" class=\"btn btn-danger btn-xs\" pepid='sysOrderCancelMerger'><i class=\"fa fa-times\"></i>&nbsp;取消合并</button>";
    private static final String OPERATION_BTN_ASSIGN = "<button onclick=\"assignorder(\'%s\',this)\" orderId=\"%s\" type=\"button\" class=\"btn btn-info btn-xs\" pepid='sysOrderAssign'><i class=\"fa fa-external-link\"></i>&nbsp;分派</button>";
    private static final String OPERATION_BTN_AFTERSALE = "<div class=\"btn-group %s\" id=\"afterSale\" ><button type=\"button\" data-toggle=\"dropdown\" class=\"btn btn-xs btn-info dropdown-toggle\" pepid='sysOrderAfterSale'><i class=\"fa fa-phone\"></i>&nbsp;售后 &nbsp;<span class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu pull-right\" id=\"afterSaleButton%s\"><li pepid='sysOrderAddRefund'><a href=\"#\" onclick=\"addSysRefund(\'%s\',this)\" id=\"addSysRefund%s\" >新增退款单</a></li><li pepid='sysOrderAddReturn'><a href=\"#\" onclick=\"addSysReturn(\'%s\',this)\" id=\"addSysReturn%s\" >新增退货单</a></li><li pepid='sysOrderAddResend'><a href=\"#\" onclick=\"addResend(\'%s\',this)\" id=\"addResend%s\" >新增补发单</a></li><li pepid='sysOrderAfterSaleEvent'><a href=\"#\" onclick=\"addEvent(\'%s\',\'%s\',this)\" id=\"addEvent%s\" >售后事件</a></li></div>";
    private static final String OPERATION_BTN_AFTERSALE1 = "<div class=\"btn-group %s\" id=\"afterSale\" ><button type=\"button\" data-toggle=\"dropdown\" class=\"btn btn-xs btn-info dropdown-toggle\" pepid='sysOrderAfterSale'><i class=\"fa fa-phone\"></i>&nbsp;售后 &nbsp;<span class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu pull-right\" id=\"afterSaleButton%s\"><li pepid='sysOrderAfterSaleEvent'><a href=\"#\" onclick=\"addEvent(\'%s\',\'%s\',this)\" id=\"addEvent%s\">售后事件</a></li></div>";
    private static final String OPERATION_BTN_AFTERSALE2 = "<div class=\"btn-group %s\" id=\"afterSale\" ><button type=\"button\" data-toggle=\"dropdown\" class=\"btn btn-xs btn-info dropdown-toggle\" pepid='sysOrderAfterSale'><i class=\"fa fa-phone\"></i>&nbsp;售后 &nbsp;<span class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu pull-right\" id=\"afterSaleButton%s\"><li pepid='sysOrderAddRefund'><a href=\"#\" onclick=\"addSysRefund(\'%s\',this)\" id=\"addSysRefund%s\">新增退款单</a></li><li pepid='sysOrderAfterSaleEvent'><a href=\"#\" onclick=\"addEvent(\'%s\',\'%s\',this)\" id=\"addEvent%s\" >售后事件</a></li></div>";

    private static final String OPERATION_BTN_UPDATE_DISABLE = "<button onclick=\"updateOrder(\'%s\')\" orderId=\"%s\" type=\"button\" disabled class=\"btn btn-disable btn-xs\" pepid='sysOrderEdit'><i class=\"fa fa-edit\"></i>&nbsp;修改</button>";
    private static final String OPERATION_BTN_CANCEL_MERGER_DISABLE = "<button onclick=\"cancelMerger(\'%s\')\" orderId=\"%s\" type=\"button\" disabled class=\"btn btn-disable btn-xs\" pepid='sysOrderCancelMerger'><i class=\"fa fa-times\"></i>&nbsp;取消合并</button>";
    private static final String OPERATION_BTN_ASSIGN_DISABLE = "<button onclick=\"assignorder(\'%s\',this)\" orderId=\"%s\" type=\"button\" disabled class=\"btn btn-disable btn-xs\" pepid='sysOrderAssign'><i class=\"fa fa-external-link\"></i>&nbsp;分派</button>";
    private static final String EC_FLAG_SHOW = "<i class=\"fa fa-flag\" style=\"color: %s;\" title=\"%s\"></i>";
    // private static final String OPERATION_BTN_AFTERSALE = "<div
    // class=\"btn-group\" id=\"afterSale\" style=\"position:
    // absolute;z-index:%s\"><button type=\"button\" data-toggle=\"dropdown\"
    // class=\"btn btn-xs btn-warning dropdown-toggle\">售后 &nbsp;<span
    // class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu\"
    // id=\"afterSaleButton%s\"><li><a href=\"#\"
    // onclick=\"addSysRefund(\'%s\',this)\"
    // id=\"addSysRefund%s\">新增退款单</a></li><li><a href=\"#\"
    // onclick=\"addSysReturn(\'%s\',this)\"
    // id=\"addSysReturn%s\">新增退货单</a></li><li><a href=\"#\"
    // onclick=\"addResend(\'%s\',this)\"
    // id=\"addResend%s\">新增补发单</a></li><li><a href=\"#\"
    // onclick=\"addEvent(\'%s\',this)\" id=\"addEvent%s\">售后事件</a></li></div>";
    // private static final String OPERATION_BTN_AFTERSALE1 = "<div
    // class=\"btn-group\" id=\"afterSale\" style=\"position:
    // absolute;z-index:%s\"><button type=\"button\" data-toggle=\"dropdown\"
    // class=\"btn btn-xs btn-warning dropdown-toggle\">售后 &nbsp;<span
    // class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu\"
    // id=\"afterSaleButton%s\"><li><a href=\"#\"
    // onclick=\"addEvent(\'%s\',this)\" id=\"addEvent%s\">售后事件</a></li></div>";
    // private static final String OPERATION_BTN_AFTERSALE2 = "<div
    // class=\"btn-group\" id=\"afterSale\" style=\"position:
    // absolute;z-index:%s\"><button type=\"button\" data-toggle=\"dropdown\"
    // class=\"btn btn-xs btn-warning dropdown-toggle\">售后 &nbsp;<span
    // class=\"caret\"></span></button><ul role=\"menu\" class=\"dropdown-menu\"
    // id=\"afterSaleButton%s\"><li><a href=\"#\"
    // onclick=\"addSysRefund(\'%s\',this)\"
    // id=\"addSysRefund%s\">新增退款单</a></li><li><a href=\"#\"
    // onclick=\"addEvent(\'%s\',this)\" id=\"addEvent%s\">售后事件</a></li></div>";

    // private static String SHOWINDEX = "1040";
    // private String flg ;

    // 快速查询
    private String searchCondition;
    private String orderTimeS; // 拍单时间 开始日期
    private String paidDateS; // 付款时间 开始日期
    private String shipTimeS; // 发货时间 开始日期
    private String finishTimeS; // 完成时间 开始日期
    private String orderTimeE; // 拍单时间 开始日期
    private String paidDateE; // 付款时间 开始日期
    private String shipTimeE; // 发货时间 开始日期
    private String finishTimeE; // 完成时间 开始日期
    private String skuCode; // 规格商家编码
    private String ecItemCode; // 平台商品编码
    private String ecSkuCode; // 平台规格编码
    private String orderBy; // 画面排序

    private Integer countWaitVerify;
    private Integer countWaitAssign;
    private Integer countShipping;
    private Integer countShipped;
    private Integer countComplete;
    private Integer countCancel;

    // 转换下拉按钮的方向(取值“”，“dropup”)
    private String reversePosition;

    public String getDisQuestion() {
        if ("a".equals(this.getOrderStatus())) {
            String strTotleQuestion = "";
            if (StringUtils.isNotBlank(this.getOrderErrorRemark())) {
                strTotleQuestion += "订单问题：" + this.getOrderErrorRemark() + "；";
            }
            if (StringUtils.isNotBlank(this.getGoodsErrorRemark())) {
                strTotleQuestion += "商品问题：" + this.getGoodsErrorRemark() + "；";
            }
            if (StringUtils.isNotBlank(this.getLgstErrorRemark())) {
                strTotleQuestion += "物流问题：" + this.getLgstErrorRemark() + "；";
            }
            if (StringUtils.isNotBlank(this.getStockErrorRemark())) {
                strTotleQuestion += "库存问题：" + this.getStockErrorRemark() + "；";
            }
            if (StringUtils.isNotBlank(strTotleQuestion)) {
                strTotleQuestion = strTotleQuestion.substring(0, strTotleQuestion.length() - 1);
            }
            return strTotleQuestion;
        } else {
            return "";
        }
    }

    public String getShopAccount() {
		return shopAccount;
	}

	public void setShopAccount(String shopAccount) {
		this.shopAccount = shopAccount;
	}
	
	public String getQty() {
		return qty;
	}

	public void setQty(String qty) {
		this.qty = qty;
	}

	public String getFactUnitPrice() {
		return factUnitPrice;
	}

	public void setFactUnitPrice(String factUnitPrice) {
		this.factUnitPrice = factUnitPrice;
	}

	public String getSkuRemark() {
		return skuRemark;
	}

	public void setSkuRemark(String skuRemark) {
		this.skuRemark = skuRemark;
	}

	public void setDisQuestion(String disQuestion) {
        this.disQuestion = disQuestion;
    }

    public Integer getCountWaitVerify() {
        return countWaitVerify;
    }

    public void setCountWaitVerify(Integer countWaitVerify) {
        this.countWaitVerify = countWaitVerify;
    }

    public Integer getCountWaitAssign() {
        return countWaitAssign;
    }

    public void setCountWaitAssign(Integer countWaitAssign) {
        this.countWaitAssign = countWaitAssign;
    }

    public Integer getCountShipping() {
        return countShipping;
    }

    public void setCountShipping(Integer countShipping) {
        this.countShipping = countShipping;
    }

    public Integer getCountShipped() {
        return countShipped;
    }

    public void setCountShipped(Integer countShipped) {
        this.countShipped = countShipped;
    }

    public Integer getCountComplete() {
        return countComplete;
    }

    public void setCountComplete(Integer countComplete) {
        this.countComplete = countComplete;
    }

    public Integer getCountCancel() {
        return countCancel;
    }

    public void setCountCancel(Integer countCancel) {
        this.countCancel = countCancel;
    }

    public String getOperation() {
        StringBuffer opButton = new StringBuffer();
        if ("i".equals(this.getOrderStatus())) {
            if ("n".equals(this.getIsCancel()) && !"lo".equals(this.getOperStus()) && "n".equals(this.getIsLock())) {
                opButton.append(String.format(OPERATION_BTN_ASSIGN, getOrderId(), getOrderId()));
                opButton.append("&nbsp;");
            } else {
                opButton.append(String.format(OPERATION_BTN_ASSIGN_DISABLE, getOrderId(), getOrderId()));
                opButton.append("&nbsp;");
            }
        }

        if ("a".equals(this.getOrderStatus())) {
            if ("c".equals(this.getCombStus()) && "n".equals(this.getIsCancel())) {
                opButton.append(String.format(OPERATION_BTN_CANCEL_MERGER, getOrderId(), getOrderId()));
                opButton.append("&nbsp;");
            } else {
                if ("n".equals(this.getIsCancel())) {
                    opButton.append(String.format(OPERATION_BTN_CANCEL_MERGER_DISABLE, getOrderId(), getOrderId()));
                    opButton.append("&nbsp;");
                }
            }

            if (("ma".equals(this.getOperStus()) || "pr".equals(this.getOperStus()) || "lo".equals(this.getOperStus()))
                    && "n".equals(this.getIsCancel())) {
                opButton.append(String.format(OPERATION_BTN_UPDATE, getOrderId(), getOrderId()));
                opButton.append("&nbsp;");
            } else {
                if ("n".equals(this.getIsCancel())) {
                    opButton.append(String.format(OPERATION_BTN_UPDATE_DISABLE, getOrderId(), getOrderId()));
                    opButton.append("&nbsp;");
                }
            }
        }

        if ("n".equals(this.getIsCancel())) {
            if ("a".equals(this.getOrderStatus())) {
                opButton.append(String.format(OPERATION_BTN_AFTERSALE2, getReversePosition(), getOrderId(), getOrderId(), getOrderId(),
                        getOrderId(), getOrderCode(), getOrderId()));
            } else {
                opButton.append(String.format(OPERATION_BTN_AFTERSALE, getReversePosition(), getOrderId(), getOrderId(), getOrderId(),
                        getOrderId(), getOrderId(), getOrderId(), getOrderId(), getOrderId(), getOrderCode(), getOrderId()));
            }
            opButton.append("&nbsp;");
        } else {
            opButton.append(
                    String.format(OPERATION_BTN_AFTERSALE1, getReversePosition(), getOrderId(), getOrderId(), getOrderCode(), getOrderId()));
            opButton.append("&nbsp;");
        }

        return opButton.toString();
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getStatus() {
        if ("a".equals(this.getOrderStatus())) {
            return "待审核";
        } else if ("i".equals(this.getOrderStatus())) {
            return "待分派";
        } else if ("k".equals(this.getOrderStatus())) {
            return "发货中";
        } else if ("r".equals(this.getOrderStatus())) {
            return "已发货";
        } else if ("z".equals(this.getOrderStatus())) {
            return "已完成";
        }
        return "";
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSign() {
        if ("y".equals(this.getIsLock())) {
            sign = STATUS_LOCK;
        } else {
            if ("au".equals(this.getOperStus())) {
                sign = AUTO_FLAG;
            } else {
                if ("a".equals(this.getOrderStatus()) && ("y".equals(this.getIsOrderError()) || "y".equals(this.getIsGoodsError())
                        || "y".equals(this.getIsLgstError()) || "y".equals(this.getIsStockError()))) {
                    sign = QUESTION_FLAG;
                } else if ("al".equals(this.getOperStus())) {
                    //sign = ALLOTED_FLAG;
                    sign = "&nbsp;&nbsp;";
                } else {
                    sign = HAND_FLAG;
                }
            }

        }
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getCustomerService() {
        if ("1".equals(customerService)) {
            return "<span class='fa fa-phone truncate-text tooltip-column-detail'> </span>";
        } else {
            return "";
        }
    }

    public void setCustomerService(String customerService) {
        this.customerService = customerService;
    }

    public String getMerge() {
        if ("c".equals(this.getCombStus())) {
            merge = COMBIN_FLAG;
        } else {
            merge = "";
        }
        return merge;
    }

    public void setMerge(String merge) {
        this.merge = merge;
    }

    public String getInspection() {
        if ("y".equals(this.getHasInspected())) {
            inspection = INSPECT_FLAG;
        } else {
            inspection = "";
        }
        return inspection;
    }

    public void setInspection(String inspection) {
        this.inspection = inspection;
    }

    public String getChk() {
        String checkFlg = "";
        if ("a".equals(this.getOrderStatus()) && "n".equals(this.getIsCancel())) { // 待审核
            checkFlg = "a";
        } else if ("i".equals(this.getOrderStatus()) && "n".equals(this.getIsCancel())) { // 待分派
            checkFlg = "i";
        } else if ("k".equals(this.getOrderStatus()) && "n".equals(this.getIsCancel())) {// 发货中
            checkFlg = "k";
        } else if ("r".equals(this.getOrderStatus()) && "n".equals(this.getIsCancel())) {// 已发货
            checkFlg = "r";
        } else if ("z".equals(this.getOrderStatus()) && "n".equals(this.getIsCancel())) {// 已完成
            checkFlg = "z";
        } else if ("y".equals(this.getIsCancel())) {// 已废弃
            checkFlg = "cancel";
        }
        return String.format(STATUS_CHK, checkFlg, this.getOrderId(), this.getRemark(), this.getShopType(), this.getShopId()).toString();
    }

    public void setChk(String chk) {
        this.chk = chk;
    }

    public String getSonShow() {
        return String.format(STATUS_ECORDERSHOW, this.getOrderId(), this.getShopType()).toString();
    }

    public void setSonShow(String sonShow) {
        this.sonShow = sonShow;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getEcItemCode() {
        return ecItemCode;
    }

    public void setEcItemCode(String ecItemCode) {
        this.ecItemCode = ecItemCode;
    }

    public String getEcSkuCode() {
        return ecSkuCode;
    }

    public void setEcSkuCode(String ecSkuCode) {
        this.ecSkuCode = ecSkuCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public String getSearchCondition() {
        return searchCondition;
    }

    public void setSearchCondition(String searchCondition) {
        this.searchCondition = searchCondition;
    }

    public String getOrderTimeS() {
        return orderTimeS;
    }

    public void setOrderTimeS(String orderTimeS) {
        this.orderTimeS = orderTimeS;
    }

    public String getPaidDateS() {
        return paidDateS;
    }

    public void setPaidDateS(String paidDateS) {
        this.paidDateS = paidDateS;
    }

    public String getShipTimeS() {
        return shipTimeS;
    }

    public void setShipTimeS(String shipTimeS) {
        this.shipTimeS = shipTimeS;
    }

    public String getFinishTimeS() {
        return finishTimeS;
    }

    public void setFinishTimeS(String finishTimeS) {
        this.finishTimeS = finishTimeS;
    }

    public String getOrderTimeE() {
        return orderTimeE;
    }

    public void setOrderTimeE(String orderTimeE) {
        this.orderTimeE = orderTimeE;
    }

    public String getPaidDateE() {
        return paidDateE;
    }

    public void setPaidDateE(String paidDateE) {
        this.paidDateE = paidDateE;
    }

    public String getShipTimeE() {
        return shipTimeE;
    }

    public void setShipTimeE(String shipTimeE) {
        this.shipTimeE = shipTimeE;
    }

    public String getFinishTimeE() {
        return finishTimeE;
    }

    public void setFinishTimeE(String finishTimeE) {
        this.finishTimeE = finishTimeE;
    }

    /**
     * 订单商品集合
     */
    private List<OrderSku> sysOrderGoodsList;

    public List<OrderSku> getSysOrderGoodsList() {
        return sysOrderGoodsList;
    }

    public void setSysOrderGoodsList(List<OrderSku> sysOrderGoodsList) {
        this.sysOrderGoodsList = sysOrderGoodsList;
    }

    /**
     * 收货人地址字节长度
     */
    private int consAddrLength;

    public int getConsAddrLength() {
        return consAddrLength;
    }

    public void setConsAddrLength(int consAddrLength) {
        this.consAddrLength = consAddrLength;
    }

    // public String getFlg() {
    // return flg;
    // }
    //
    // public void setFlg(String flg) {
    // this.flg = flg;
    // SHOWINDEX = "1040";
    // }

    public String getStatusAfterSale() {
        return statusMap.get(this.getTradeStatus());
    }

    public void setStatusAfterSale(String statusAfterSale) {

        this.statusAfterSale = statusAfterSale;
    }

    public String getReversePosition() {
        return StringUtils.isEmpty(reversePosition) ? "" : reversePosition;
    }

    public void setReversePosition(String reversePosition) {
        this.reversePosition = reversePosition;
    }

    public String getEcFlagShow() {
        Long ecFlag = this.getTbFlagCode();
        if (ecFlag != null && ecFlag.longValue() > 0) {
            return String.format(EC_FLAG_SHOW, ecFlagColor.get(ecFlag), "买家留言：" + this.getCustRemark() + "&#10;卖家备注：" + this.getSalesRemark())
                    .toString();
        } else {
            return "";
        }
    }

    public void setEcFlagShow(String ecFlagShow) {
        this.ecFlagShow = ecFlagShow;
    }

    public String getStamp() {
        return stamp;
    }

    public void setStamp(String stamp) {
        this.stamp = stamp;
    }

    public String getEvent() {
        return event;
    }

    public void setEvent(String event) {
        this.event = event;
    }

}
